package com.zzw.spring.aop.vo;

import com.zzw.spring.aop.service.BenaSelfProxyAware;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.framework.AopContext;

public class Waiter3  {

	private Logger logger = LoggerFactory.getLogger(getClass());

	public void greetTo(String name){
		logger.info("Waiter greet to" + name + "...");
		Waiter3.class.cast(AopContext.currentProxy()).serveTo(name);
	}

	public void  serveTo(String name){
		logger.info("Waiter serve to" + name + "...");
	}

}
